﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Windows;
using GalaSoft.MvvmLight.Threading;
using TeacherLeftHand.Util;
using Microsoft.VisualBasic;


/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class Application
{
    private string StartUpLang = "en-US";
    public static Collection StartUpFileNames = new Collection();
        
    public Application()
    {
        DispatcherHelper.Initialize();
        this.Startup += new System.Windows.StartupEventHandler(Application_Startup);
    }
    

    protected override void OnStartup(StartupEventArgs e)
    {
        TranslationManager.Instance.TranslationProvider = new ResxTranslationProvider("TeacherLeftHand.Resources.Resources", Assembly.GetExecutingAssembly());
        ResxTranslationProvider.StartUpLang = StartUpLang;

        //HungNQ
        if (e.Args.Any())
        {

            this.Properties["PathFile"] = e.Args[0];

        }

        base.OnStartup(e);
    }
    public void Application_Startup(object sender, System.Windows.StartupEventArgs e)
    {
        if (e.Args.Length > 0)
        {
            foreach (string s in e.Args)
            {
                StartUpFileNames.Add(s, null, null, null);
            }
        }
    }
}

